package helper.base

import helper.base.TimeHelper.aTimePatternString2
import helper.base.TimeHelper.aTimePatternString4
import helper.base.TimeHelper.getNowTimeString
import helper.base.TimeHelper.getTimeString
import org.junit.Test
import java.time.LocalDateTime

internal class TimeHelperTest {
    @Test
    fun t_2022_1013_221132_() {
        var now: LocalDateTime = LocalDateTime.now().minusMonths(0).minusDays(1)//
        (0..12).map { i ->
            (1..7).map { j ->
                now = now.minusDays(-1)
                getTimeString(
                    now,
                    aTimePatternString2,
                ).apply {
                    println("$this @研一下暑${2 + i}周${j}")
                }
            }
        }
    }

    @Test
    fun t_2023_1013_222105_(){
        getNowTimeString(aTimePatternString4).let {
            println(it)
        }
    }
}